package com.aibaixun.system.service;

import cn.hutool.core.lang.tree.Tree;
import com.aibaixun.common.core.domain.R;
import com.aibaixun.system.domain.DicmAddress;
import com.aibaixun.system.domain.dto.BindDeviceDto;
import com.aibaixun.system.domain.vo.QueryDeviceVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author zhangyh
* @description 针对表【dicm_address(地址信息表)】的数据库操作Service
* @createDate 2023-09-14 10:17:45
*/
public interface DicmAddressService extends IService<DicmAddress> {

    /**
     * 获取树
     * @param dto
     * @return
     */
    R<List<Tree<String>>> getTree(DicmAddress dto);

    List<String> queryAddressIdList();

    void addDicmAddress(List<DicmAddress> dicmAddressesList);

    R bindDeviceUe(BindDeviceDto dto);

    DicmAddress queryCabinetByName(String item);

    void saveDicmAddress(List<DicmAddress> addressesList);

    List<DicmAddress> queryAddressaIdByAddressId(String addressId);

    QueryDeviceVo queryByRoomId(String cabinetId);

    R queryDeviceByRoomId(String parentId);

    void resetUeId();

}
